#include "i2c.h"
void AT24C02_writebety(unsigned char addr,unsigned char Data){
	I2C_start();
	I2C_sendbyte(0xa0);
	I2C_acack();
	I2C_sendbyte(addr);
	I2C_acack();
	I2C_sendbyte(Data);
	I2C_acack();
	I2C_stop();
}
unsigned char AT24C02_readbety(unsigned char addr){
	unsigned char Data;
	I2C_start();
	I2C_sendbyte(0xa0);
	I2C_acack();
	I2C_sendbyte(addr);
	I2C_acack();
	I2C_start();
	I2C_sendbyte(0xa1);
	I2C_acack();
	Data=I2C_acbyte();
	I2C_sendack(1);
	I2C_stop();
	return  Data;
}